#ifndef __BASE_FORM
#define __BASE_FORM

#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "HWindow.h"

#include "int.h"

class TOziBaseForm : public TForm {
  __published:
        HWindow *client;
        void __fastcall idOnButton(TObject *Sender,
          const PHCustomWindowBorder Border,
          const HCaptionButton_t Button);
        void __fastcall FormCreate(TObject *Sender);
        void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
        void __fastcall FormKeyUp(TObject *Sender, WORD &Key,
          TShiftState Shift);
  private:
    bool            isMax;
    MyRect          NormSize;
    HCaptionButtons NormButtons;
    TForm         **FormPtr;
    char            wKey[ MAX_PATH_SIZE ];

  protected:
    OverrideArray  Overrides;

  protected:
    virtual void __fastcall CreateParams(TCreateParams &Params);
    virtual void __fastcall WndProc( Messages::TMessage &m );
    virtual void __fastcall idPos( double Lat,double Lon,double vSpeed,double Head,double Mag,double Alt, int x, int y );
    virtual void __fastcall idOZIPos( double Lat,double Lon,double vSpeed,double Head,double Mag,double Alt, int x, int y );

  public:
    __fastcall TOziBaseForm( TComponent* Owner );

    void __fastcall Init( CONSTSTR key, PTForm *ptr );

    void __fastcall SetCaption( CONSTSTR m );

    DEF_PROP_V( bool, RealValues )
};

#endif
